package com.auth.feign;

import com.common.model.po.SysUser;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClientConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "SYSTEMMANAGE",configuration = LoadBalancerClientConfiguration.class)
public interface UserClient {

    @LoadBalanced
    @GetMapping("/user/userAccount")
    SysUser userAccount(@RequestParam("username") String username);
 
}